Mysql: Support additional information "double" datatypes #2293
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Pass along parsed "additional information" information to the final datatype for doubles in mysql/mariadb.
Fixes #2169 which hit the problem with "unsigned"
Dev Handoff Notes (Internal Use)
Links
Testing
Dev Verification
Tested that changeset
correctly included the "unsigned" and the (38,2) when ran against mysql
Test Requirements (Liquibase Internal QA)
Manual Tests
Verify update-sql generates correct sql code for createTable on MySQL5 database
liquibase update-sql --changelog-file lb2195-changelog.xml --labels create
Verify update is successful for createTable on MySQL5 database
liquibase update --changelog-file lb2195-changelog.xml --labels create
double_test
exists and containsunsigned_column
,signed_column
andzerofill_column
columnsVerify update is successful for insert correct data on MySQL5 database
liquibase update --changelog-file lb2195-changelog.xml --labels correct,special
double_test
tableVerify update throws an error for insert incorrect data on MySQL5 database
liquibase update --changelog-file lb2195-changelog.xml --labels wrong
Out of range value
is thrownRepeat all test cases for MySQL8 and MariaDB
Automated Tests
No new functional tests required for this fix.
┆Issue is synchronized with this Jira Bug by Unito